/* 此styleSheet提供主要网页样式 */
html[theme="light"]:root {
    /*BASE_COLOR:AQUA*/
    --body-cover-shadow: rgba(0, 255, 255, 0.4);
    --body-cover-bg: rgba(0, 255, 255, 0.5);
    --body-cover-color: black;
    --body-cover-border: rgba(0, 255, 255, 0.2);
    --getHistory-bg: transparent;
    --getHistory-color: rgba(0, 255, 255, 0.7);
    --getHistory-border-bottom: rgba(0, 255, 255, 0.5);
    --main-color: black;
    --msg-time-color: aqua;
    --msg-user-message-border-history: white;
    --msg-user-message-bg-history: rgba(255, 255, 255, 0.2);
    --msg-user-message-border-care: pink;
    --msg-user-message-bg-care: rgba(255, 192, 203, 0.2);
    --msg-user-message-border-normal: aqua;
    --msg-user-message-bg-normal: rgba(255, 255, 255, 0.2);
    --msg-user-message-border-self: aqua;
    --msg-user-message-bg-self: rgba(255, 255, 255, 0.2);
    --msg-recallBtn-color: rgb(100, 100, 100);
    --msg--recallBtn-bg: transparent;
    --msg-removeBtn-color: rgb(100, 100, 100);
    --msg-removeBtn-bg: transparent;
    --msg-triangle-border: aqua;
    --bottom-insert-border: aqua;
    --bottom-insert-bg: rgba(255, 255, 255, 0.2);
    --bottom-insert-color: black;
    --bottom-insert_any-bg: rgba(255, 255, 255, 0.5);
    --bottom-insert_any-border: aqua;
    --bottom-insert_any-color: black;
    --rich-text-div-button-color: transparent;
    --rich-text-div-button-bg: transparent;
    --side-userInfo-border: aqua;
    --upload-profile-photo-img-bg: rgba(255, 255, 255, 0.5);
    --upload-profile-photo-img-border: aqua;
    --side-status-bg: rgba(0, 255, 255, 0.4);
    --side-status-color: black;
    --side-status-border: aqua;
    --side-status-shadow-border: aqua;
    --side-settings-bg: rgba(0, 255, 255, 0.4);
    --side-settings-color: black;
    --side-settings-border: aqua;
    --side-settings-shadow-border: aqua;
    --bottom-input-bg: rgba(255, 255, 255, 0.4);
    --bottom-input-color: black;
    --bottom-input-shadow: rgba(255, 255, 255, 0.4);
    --bottom-input_any-bg: transparent;
    --bottom-input_any-color: black;
    --bottom-submit-bg: rgba(0, 200, 255, 0.3);
    --bottom-submit-color: black;
    --bottom-submit-shadow: rgba(0, 200, 255, 0.3);
    --bottom-submit_any-bg: transparent;
    --bottom-submit_any-color: black;
    --goto-bottom-color: black;
    --goto-bottom-border: rgba(255, 255, 255, 0);
    --goto-bottom_any-bg: rgba(255, 255, 255, 0.2);
    --goto-bottom_any-color: black;
    --tip-bg: rgba(0, 0, 0, 0);
    --tip-color: rgba(150, 150, 150, 0.7);
    --webkit-scrollbar-bg: rgba(255, 255, 255, 0.2);
    --webkit-scrollbar-border: aqua;
    --webkit-scrollbar-thumb: rgba(0, 255, 255, 0.5);
}

html[theme="dark"]:root {
    /*BASE_COLOR:MAGENTA*/
    --body-cover-shadow: rgba(255, 0, 255, 0.2);
    --body-cover-bg: rgba(0, 0, 0, 0.5);
    --body-cover-color: white;
    --body-cover-border: rgba(255, 0, 255, 0.2);
    --getHistory-bg: transparent;
    --getHistory-color: rgba(255, 0, 255, 0.7);
    --getHistory-border-bottom: rgba(255, 0, 255, 0.5);
    --main-color: white;
    --msg-time-color: magenta;
    --msg-user-message-border-history: black;
    --msg-user-message-bg-history: rgba(0, 0, 0, 0.2);
    --msg-user-message-border-care: pink;
    --msg-user-message-bg-care: rgba(255, 192, 203, 0.2);
    --msg-user-message-border-normal: magenta;
    --msg-user-message-bg-normal: rgba(255, 255, 255, 0.2);
    --msg-user-message-border-self: magenta;
    --msg-user-message-bg-self: rgba(0, 0, 0, 0.2);
    --msg-recallBtn-color: rgb(200, 200, 200);
    --msg--recallBtn-bg: transparent;
    --msg-removeBtn-color: rgb(200, 200, 200);
    --msg-removeBtn-bg: transparent;
    --msg-triangle-border: magenta;
    --bottom-insert-border: magenta;
    --bottom-insert-bg: rgba(255, 255, 255, 0.2);
    --bottom-insert-color: white;
    --bottom-insert_any-bg: rgba(255, 255, 255, 0.3);
    --bottom-insert_any-border: magenta;
    --bottom-insert_any-color: white;
    --rich-text-div-button-color: transparent;
    --rich-text-div-button-bg: transparent;
    --side-userInfo-border: magenta;
    --upload-profile-photo-img-bg: rgba(255, 255, 255, 0.2);
    --upload-profile-photo-img-border: magenta;
    --side-status-bg: rgba(0, 0, 0, 0.4);
    --side-status-color: magenta;
    --side-status-border: magenta;
    --side-status-shadow-border: magenta;
    --side-settings-bg: rgba(0, 0, 0, 0.4);
    --side-settings-color: magenta;
    --side-settings-border: magenta;
    --side-settings-shadow-border: magenta;
    --bottom-input-bg: rgba(255, 255, 255, 0.2);
    --bottom-input-color: white;
    --bottom-input-shadow: rgba(255, 255, 255, 0.2);
    --bottom-input_any-bg: transparent;
    --bottom-input_any-color: white;
    --bottom-submit-bg: rgba(200, 0, 255, 0.3);
    --bottom-submit-color: white;
    --bottom-submit-shadow: rgba(200, 0, 255, 0.3);
    --bottom-submit_any-bg: transparent;
    --bottom-submit_any-color: white;
    --goto-bottom-color: white;
    --goto-bottom-border: transparent;
    --goto-bottom_any-bg: rgba(255, 255, 255, 0.2);
    --goto-bottom_any-color: white;
    --tip-bg: rgba(0, 0, 0, 0);
    --tip-color: rgba(200, 200, 200, 0.7);
    --webkit-scrollbar-bg: rgba(0, 0, 0, 0.2);
    --webkit-scrollbar-border: magenta;
    --webkit-scrollbar-thumb: rgba(255, 0, 255, 0.5);
}

* {
    /* cursor: url("/static/images/cursor/Help.cur"), help; */
    /* cursor: url("/static/images/cursor/Horizontal Resize.cur"), e-resize; */
    /* cursor: url("/static/images/cursor/Horizontal Resize.cur"), w-resize; */
    /* cursor: url("/static/images/cursor/Horizontal Resize.cur"), ew-resize; */
    /* cursor: url("/static/images/cursor/Vertical Resize.cur Resize.cur"), n-resize; */
    /* cursor: url("/static/images/cursor/Vertical Resize.cur Resize.cur"), s-resize; */
    /* cursor: url("/static/images/cursor/Vertical Resize.cur Resize.cur"), ns-resize; */
    /* cursor: url("/static/images/cursor/Link.cur"), pointer; */
    /* cursor: url("/static/images/cursor/Move.cur"), move; */
    /* cursor: url("/static/images/cursor/Move.cur"), all-scroll; */
    /* cursor: url("/static/images/cursor/Select.cur"), crosshair; */
    /* cursor: url("/static/images/cursor/Text.cur"), text; */
    /* cursor: url("/static/images/cursor/UpLeft Resize.cur"), nw-resize; */
    /* cursor: url("/static/images/cursor/UpLeft Resize.cur"), se-resize; */
    /* cursor: url("/static/images/cursor/UpLeft Resize.cur"), nwse-resize; */
    /* cursor: url("/static/images/cursor/UpRight Resize.cur"), ne-resize; */
    /* cursor: url("/static/images/cursor/UpRight Resize.cur"), sw-resize; */
    /* cursor: url("/static/images/cursor/UpRight Resize.cur"), nesw-resize; */
    /* cursor: url("/static/images/cursor/Unavailable.cur"), no-drop; */
    /* cursor: url("/static/images/cursor/Unavailable.cur"), not-allowed; */
    /* cursor: url("/static/images/cursor/Working.ani"), progress; */
    /* cursor: url("/static/images/cursor/Busy.ani"), wait; */
    cursor: url("/static/images/cursor/Normal.cur"), default;
}

body {
    background-image: url('../images/universe-wide.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    border: 0;
    padding: 0;
    z-index: -1;
}

body>* {
    user-select: none;
}

#body-cover {
    position: relative;
    left: 5%;
    width: 80%;
    overflow: hidden;
    box-shadow: 0 0 10px 10px var(--body-cover-shadow);
    border: 1px solid var(--body-cover-border);
    border-radius: 50px;
    margin: 0;
    margin-top: 70px;
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: 50px;
    background-color: var(--body-cover-bg);
    color: var(--body-cover-color);
    backdrop-filter: blur(2px);
    font-size: 20px;
    z-index: 0;
}

#getHistory {
    width: calc(100% - 10px);
    height: 30px;
    text-align: center;
    font-size: 15px;
    background-color: var(--getHistory-bg);
    color: var(--getHistory-color);
    border: 0;
    padding: 0;
    margin: 5px;
    outline: none;
    border-bottom: 2px solid var(--getHistory-border-bottom);
}

.main {
    font-size: 20px;
    border: 0;
    padding: 0;
    margin-left: 5px;
    margin-right: 60px;
    overflow-y: auto;
    overflow-wrap: break-word;
    z-index: 0;
    color: var(--main-color);
}

.main>ul {
    padding: 0;
    width: 100%;
}

.main>ul>* {
    position: relative;
}

.msg-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    border: 0;
    padding: 0;
    width: 100px;
    overflow: hidden;
    position: relative
}

/* .msg-user-message::before {
    content: "";
    margin: 0;
    padding: 0;
    border-radius: 0;
    border-width: 10px;
    border-style: solid;
    background-color: transparent;
    border-color: transparent var(--msg-triangle-border) transparent transparent;
    width: 0;
    height: 0;
    position: absolute;
    left: 0px;
    top: 8px;
} */

.msg-time {
    width: 100%;
    font-size: 12px;
    text-align: center;
    color: var(--msg-time-color);
}

.msg-user-profile-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0;
    border: 0;
    padding: 0;
}

.msg-user-name {
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    text-overflow: ellipsis;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.public {
    display: flex;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.private {
    display: flex;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.msg-user-message-history {
    margin: 0;
    padding: 5px;
    border: 1px solid var(--msg-user-message-border-history);
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--msg-user-message-bg-history);
}

.msg-user-message-care {
    margin: 0;
    padding: 5px;
    border: 1px solid var(--msg-user-message-border-care);
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--msg-user-message-bg-care);
}


.msg-user-message-normal {
    margin: 0;
    padding: 5px;
    border: 1px solid var(--msg-user-message-border-normal);
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--msg-user-message-bg-normal);
}

.msg-user-message-self {
    margin: 0;
    padding: 5px;
    border: 1px solid var(--msg-user-message-border-self);
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--msg-user-message-bg-self);
}

.msg-user-message>img {
    max-width: 320px;
    max-height: 320px;
}


.msg-user-message::-webkit-scrollbar {
    background-color: var(--webkit-scrollbar-bg);
    border: 1px solid var(--webkit-scrollbar-border);
    border-radius: 10px;
    width: 10px;
    height: 0;
}

.msg-user-message::-webkit-scrollbar-button {
    display: none;
}

.msg-user-message::-webkit-scrollbar-thumb {
    background-color: var(--webkit-scrollbar-thumb);
    border-radius: 10px;
}

.msg-Btn-box {
    width: 20px;
    margin: 0;
    padding: 0;
}

.msg-recallBtn {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background-color: var(--msg-recallBtn-bg);
    color: var(--msg-recallBtn-color);
    height: 20px;
    width: 20px;
    user-select: none;
}

.msg-removeBtn {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background-color: var(--msg-removeBtn-bg);
    color: var(--msg-removeBtn-color);
    height: 20px;
    width: 20px;
    user-select: none;
}

.main>ul>* {
    user-select: text;
}

::-webkit-scrollbar {
    background-color: transparent;
    width: 0;
    height: 0;
}

.main::-webkit-scrollbar {
    background-color: var(--webkit-scrollbar-bg);
    border: 1px solid var(--webkit-scrollbar-border);
    border-radius: 5px;
    width: 15px;
    height: 0;
}

.main::-webkit-scrollbar-button {
    display: none;
}

.main::-webkit-scrollbar-thumb {
    background-color: var(--webkit-scrollbar-thumb);
    border-radius: 5px;
}

#bottom-insert {
    position: fixed;
    bottom: 130px;
    width: calc(100% - 150px);
    height: 50px;
    margin: 0;
    margin-left: 10px;
    border: 0;
    border-top: 1px double var(--bottom-insert-border);
    border-bottom: 1px double var(--bottom-insert-border);
    border-radius: 20px;
    padding: 0;
    background-color: var(--bottom-insert-bg);
    color: var(--bottom-insert-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    max-height: calc(100% - 100px);
    z-index: 2
}

#bottom-insert>* {
    position: relative;
    width: 32px;
    height: 32px;
    background-color: var(--bottom-insert_any-bg);
    color: var(--bottom-insert_any-color);
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bottom-insert_any-border);
    padding: 5px;
}

#side-userInfo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    padding: 0;
    border-bottom: 1px double var(--side-userInfo-border);
}

#side-userInfo>#upload-profile-photo>img {
    width: 64px;
    height: 64px;
    background-color: var(--upload-profile-photo-img-bg);
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    margin-left: 10px;
    margin-right: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--upload-profile-photo-img-border);
}

#side-userInfo>#upload-profile-photo {
    overflow: hidden;
    width: 64px;
    height: 64px;
    position: absolute;
    left: 5px;
    top: 5px;
}

#side-userInfo>#upload-profile-photo>* {
    position: absolute;
}

#side-userInfo>#side-username {
    position: relative;
    left: 70px;
    top: 16px;
    width: calc(100% - 70px);
    margin: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

#side-userInfo>#side-userIdentify {
    position: relative;
    left: 70px;
    margin: 0;
    margin-top: 15px;
    width: 210px;
    height: auto;
    border: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-around;
}

#side-userInfo>#side-userIdentify>#user-status {
    position: relative;
    margin: 0;
    border: 0;
    padding: 0;
    width: 70px;
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#side-userInfo>#side-userIdentify>#user-status>#user-status-choose {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#side-status {
    position: fixed;
    left: 0;
    top: 20%;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 0px;
    height: 60%;
    min-height: 300px;
    display: flex;
    align-items: flex-start;
    z-index: 12;
    background-color: var(--side-status-bg);
    color: var(--side-status-color);
    border: 1px solid var(--side-status-border);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

#side-status>#side-userInfo>#upload-profile-photo>#profile-photo {
    pointer-events: none;
    margin: 0;
    border: 0;
    padding: 0;
}

#side-status-shadow {
    position: fixed;
    left: 0;
    top: 20%;
    width: 0;
    height: 60%;
    min-height: 300px;
    border-left: 2px solid var(--side-status-shadow-border);
    z-index: 11;
    margin: 0;
    padding: 0;
}

#side-settings-shadow {
    position: fixed;
    right: 0;
    top: 20%;
    width: 0;
    height: 60%;
    min-height: 300px;
    border-left: 2px solid var(--side-settings-shadow-border);
    z-index: 11;
    margin: 0;
    padding: 0;
}

#side-settings {
    position: fixed;
    top: 20%;
    right: 0;
    width: 0;
    height: 60%;
    min-height: 300px;
    border: 1px solid var(--side-settings-border);
    background-color: var(--side-settings-bg);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
}

#rich-text {
    position: absolute;
    right: 10px;
}

#rich-text>div {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
}

#rich-text>div>button {
    width: 100%;
    height: 100%;
    color: var(--rich-text-div-button-color);
    background-color: var(--rich-text-div-button-bg);
    margin: 0;
    border: 0;
    padding: 0;
    outline: none;
}


#bottom-insert>*>* {
    position: absolute;
}

#bottom-input {
    position: fixed;
    background-color: var(--bottom-input-bg);
    color: var(--bottom-input-color);
    height: 80px;
    width: calc(100% - 150px);
    left: 30px;
    margin: 0;
    border: 0;
    bottom: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px 10px var(--bottom-input-shadow);
    user-select: text;
    max-height: calc(100% - 150px);
    z-index: 1
}

#bottom-input>* {
    border: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    line-height: 100%;
    vertical-align: top;
    background-color: var(--bottom-input_any-bg);
    color: var(--bottom-input_any-color);
    font-size: 15px;
    font-weight: bold;
    z-index: 0;
    outline: none;
    overflow-wrap: break-word;
    margin-bottom: 10px;
    resize: none;
}

#userInput>img {
    max-width: 180px;
    max-height: 180px;
}

#bottom-submit {
    position: fixed;
    background-color: var(--bottom-submit-bg);
    color: var(--bottom-submit-color);
    height: 80px;
    width: 60px;
    right: 40px;
    margin: 0;
    border: 0;
    bottom: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px 10px var(--bottom-submit-shadow);
    text-align: center;
    padding: 0;
}


#bottom-submit>* {
    border: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    line-height: 100%;
    vertical-align: middle;
    background-color: var(--bottom-submit_any-bg);
    color: var(--bottom-submit_any-color);
    font-size: 15px;
    font-weight: bold;
    z-index: 0;
    outline: none;
    overflow-wrap: break-word;
    text-align: center;
    writing-mode: vertical-lr;
}

#goto-bottom {
    position: fixed;
    right: 0px;
    bottom: 50%;
    width: 20px;
    margin: 0;
    padding: 0;
    color: var(--goto-bottom-color);
}

#goto-bottom>* {
    padding: 0;
    margin: 0;
    border-radius: 5px;
    border-color: var(--goto-bottom-border);
    text-align: center;
    background-color: var(--goto-bottom_any-bg);
    color: var(--goto-bottom_any-color)
}

#tip {
    font-size: 10px;
    border: 0;
    margin: 0;
    padding: 0;
    background-color: var(--tip-bg);
    outline: none;
    position: absolute;
    bottom: 15px;
    left: calc(100% - 300px);
    color: var(--tip-color);
    -webkit-user-select: none;
    user-select: none;
}